/*    */ package com.zimbra.cs.account.ldap.custom;
/*    */ 
/*    */ import com.google.common.annotations.VisibleForTesting;
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.cs.account.Account;
/*    */ import com.zimbra.cs.account.Domain;
/*    */ import com.zimbra.cs.account.Provisioning.CacheMode;
/*    */ import com.zimbra.cs.account.Provisioning.GroupMembership;
/*    */ import com.zimbra.cs.account.SearchDirectoryOptions;
/*    */ import com.zimbra.cs.account.SearchDirectoryOptions.ObjectType;
/*    */ import com.zimbra.cs.account.SearchDirectoryOptions.SortOpt;
/*    */ import com.zimbra.cs.account.ldap.LdapDIT;
/*    */ import com.zimbra.cs.account.ldap.LdapProvisioning;
/*    */ import java.util.List;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class CustomLdapProvisioning
/*    */   extends LdapProvisioning
/*    */ {
/*    */   protected void setDIT()
/*    */   {
/* 34 */     this.mDIT = new CustomLdapDIT(this);
/*    */   }
/*    */   
/*    */ 
/*    */   public CustomLdapProvisioning() {}
/*    */   
/*    */   public CustomLdapProvisioning(Provisioning.CacheMode cacheMode)
/*    */   {
/* 42 */     super(cacheMode);
/*    */   }
/*    */   
/*    */   public List<?> getAllDistributionLists(Domain domain)
/*    */     throws ServiceException
/*    */   {
/* 48 */     SearchDirectoryOptions searchOpts = new SearchDirectoryOptions();
/* 49 */     searchOpts.setFilter(this.mDIT.filterDistributionListsByDomain(domain));
/* 50 */     searchOpts.setTypes(new SearchDirectoryOptions.ObjectType[] { SearchDirectoryOptions.ObjectType.distributionlists });
/* 51 */     searchOpts.setSortOpt(SearchDirectoryOptions.SortOpt.SORT_ASCENDING);
/* 52 */     return searchDirectoryInternal(searchOpts);
/*    */   }
/*    */   
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   public List getAllGroups(Domain domain)
/*    */     throws ServiceException
/*    */   {
/* 65 */     return getAllDistributionLists(domain);
/*    */   }
/*    */   
/*    */ 
/*    */ 
/*    */ 
/*    */   @VisibleForTesting
/*    */   public Provisioning.GroupMembership getCustomDynamicGroupMembership(Account acct, boolean adminGroupsOnly)
/*    */     throws ServiceException
/*    */   {
/* 75 */     return new Provisioning.GroupMembership();
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/account/ldap/custom/CustomLdapProvisioning.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */